{include file="public/header"}
<body>
<fieldset class="layui-elem-field">
    <legend>操作日志列表</legend>
    <div class="layui-field-box">
        <form id="seachForm" method="" action="" class="layui-form">
            
             <div class="layui-inline">
                <label class="layui-form-label">文件名</label>
                <div class="layui-input-inline">
                    <input type="text" name="file_name" value="" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>

            <button id="seach" type="submit" class="layui-btn layui-btn-normal"><i class="layui-icon">&#xe615;</i> 查找</button>
        </form>
        <table class="layui-table" lay-even>
            <thead>
            <tr>
                <th>编号</th>
                <th>操作者名称</th>
                <th>行为</th>
                <th>上传文件名</th>
                <th>上传时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="list" id="vo"}
            <tr>
                <td>{$vo["id"]}</td>
                <td>{$vo['admin']['name']}</td>
                <td>{$vo['action']}</td>
                <td>{$vo['data']}</td>
                <td>{$vo['create_time']}</td>
                <td>
                    <a class="layui-btn layui-btn-normal confirm"  data-id="{$vo['id']}"  
                     href="{:url('Trade/index',['id'=>$vo['id']])}">查看</a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        <div>{$list->render()}</div>
    </div>
</fieldset>
{include file="public/footer"}
<script>
    layui.use('form', function(){
        var form = layui.form();
        form.on('submit(admin-form)', function(data){
            var params  = {
                url: '{:url("profit")}',
                data: data.field,
                type: 'post',

                sCallback:function(res){
                    dialog.success(res.msg);
                }
            };
            common.request(params);
        });
    });
</script>
</body>
</html>